home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 1999-06-13 | 2.1 KB | 78 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="4"
- "UIPATH"="Appearance\Start menu\Visible Items"
- "NAME"="Visible Items #1"
- "VERSION"="1.6"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Show "Favorites" in Start menu"
- "TEXT 2"="Show "Recent Documents" in Start menu"
- "TEXT 3"="Show "Run..." in Start menu"
- "TEXT 4"="Show "Exit..." in Start menu"
- "DESCRIPTION 1"="Use this plug-in to show or hide some of the items in the Start menu."
- "DESCRIPTION 2"="NOTE: "Show Favorites" requires Internet Explorer 4."
- "AUTHOR"="Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
-
-
- 'Declaration of some constants
- sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- i=RegReadValue(sp&"NoFavoritesMenu") 'DW
- If IsEmpty(i) or i=0 then SetUIElement 1,true
-
- i=RegReadValue(sp&"NoRecentDocsMenu") 'DW
- if IsEmpty(i) or i=0 then SetUIElement 2,true
-
- i=RegReadValue(sp&"NoRun") 'DW
- if IsEmpty(i) or i=0 then SetUIElement 3,true
-
- i=RegReadValue(sp&"NoClose") 'DW
- if IsEmpty(i) or i=0 then SetUIElement 4,true
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sp&"NoFavoritesMenu",0,2)
- else
- Call RegWriteValue(sp&"NoFavoritesMenu",1,2)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sp&"NoRecentDocsMenu",0,2)
- else
- Call RegWriteValue(sp&"NoRecentDocsMenu",1,2)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sp&"NoRun",0,2)
- else
- Call RegWriteValue(sp&"NoRun",1,2)
- end if
-
- b=GetUIElement(4)
- if b=true then
- Call RegWriteValue(sp&"NoClose",0,2)
- else
- Call RegWriteValue(sp&"NoClose",1,2)
- end if
-
-
- Call Logoff
- END SUB
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-